package com.tfswx.ruleengine.database.bean.table;

import com.tfswx.ruleengine.database.bean.BaseTable;
import com.tfswx.ruleengine.database.bean.TabeleField;
import com.tfswx.ruleengine.database.bean.Zdlx;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ricky
 * @date 2022/3/1
 */
public class StgxTable extends BaseTable {
    @Override
    public String getTableName() {
        return "T_GZYQ_XT_STGX";
    }

    @Override
    public String getTableComment() {
        return "实体关系表";
    }

    @Override
    public List<TabeleField> getFieldList() {
        List<TabeleField> stgxFieldList = new ArrayList<>();
        stgxFieldList.add(new TabeleField("GXBM", Zdlx.CHAR, 32, true, "关系编码"));
        stgxFieldList.add(new TabeleField("FGXBM", Zdlx.CHAR, 32, false, "父关系编码"));
        stgxFieldList.add(new TabeleField("XMBM", Zdlx.CHAR, 32, false, "项目编码"));
        stgxFieldList.add(new TabeleField("ZZDMC", Zdlx.VARCHAR, 50, false, "主字段名称"));
        stgxFieldList.add(new TabeleField("CZDMC", Zdlx.VARCHAR, 50, false, "从字段名称"));
        stgxFieldList.add(new TabeleField("SFSC", Zdlx.CHAR, 1, false, "是否删除"));
        stgxFieldList.add(new TabeleField("CJSJ", Zdlx.TIMESTAMP, null, false, "创建时间"));
        stgxFieldList.add(new TabeleField("ZHXGSJ", Zdlx.TIMESTAMP, null, false, "最后修改时间"));
        return stgxFieldList;
    }
}
